package com.chixing.day04_oop;

import com.chixing.day03.SortUtil;
import com.sun.javaws.IconUtil;

public class Fuxi {
    public static int factorial(int n ) {

        if(n==0){
            return 1;
        }
        else{
            return n*factorial(n-1);
        }

    }
    public static void main(String[] args) {
        int score=76;
        int grade;
        if (score>=90){
            grade=1;
        }
        else if (score>=80){
            grade=2;
        }
        else if (score>=70){
            grade=3;
        }
        else if (score>=60){
            grade=4;
        }
        else {
            grade=5;
        }
        switch(grade){
            case 1:
                System.out.println("A等级");
                break;
            case 2:
                System.out.println("B等级");
                break;
            case 3:
                System.out.println("C等级");
                break;
            case 4:
                System.out.println("D等级");
                break;
            case 5:
                System.out.println("E等级");
                break;
        }
        int answer=factorial(5);
        System.out.println(answer);

        int a=0,b=0,c=0;
        while (b<100){
            a+=2;
            b+=5;
            c=a*b;

            System.out.println(a+"*"+b+"="+c);
        }


    }
    




}

